<template>
<onekit-page>
<onekit-view onekit-class="container">
	<div is="onekit-template-head" :DATA="`${JSON.stringify({title:'navigateTo/Back, redirectTo'})}`"></div>
	<onekit-view onekit-class="page-body">
		<onekit-view onekit-class="btn-area">
			<onekit-button @Tap="navigateTo">跳转新页面</onekit-button>
			<onekit-button @Tap="navigateBack">返回上一页</onekit-button>
			<onekit-button @Tap="redirectTo">在当前页面打开</onekit-button>
			<onekit-button @Tap="switchTab">跳转到组件Tab页</onekit-button>
			<onekit-button @Tap="reLaunch">关闭所有页面并跳转</onekit-button>
		</onekit-view>
	</onekit-view>
	<div is="onekit-template-foot"></div>
</onekit-view>
</onekit-page></template>
<script>
/* eslint-disable */
import Vue from 'vue';
import onekit_template_0 from '../../../common/head.head.vue';Vue.component('onekit-template-head',onekit_template_0);
import onekit_template_1 from '../../../common/foot.foot.vue';Vue.component('onekit-template-foot',onekit_template_1);
const ONEKIT_JSON= {
  "navigationBarTitleText": "页面跳转",
  "usingComponents": {
    
  }
};
const ONEKIT_SJS = {
};
import wx from '../../../../weixin2vue/wx.js';
import Macro from '../../../../weixin2vue/Macro.js';
const {getApp,getCurrentPages} = Macro;
import Page from '../../../../weixin2vue/OnekitPage.js';
import Component from '../../../../weixin2vue/OnekitComponent.js';
export default Page(ONEKIT_JSON,[],ONEKIT_SJS,{
    "onShareAppMessage"(){
      return {
        "title":'页面跳转',
        "path":'packageAPI/pages/navigator/navigator'
};
    },
    "navigateTo"(){
      wx.navigateTo({
        "url":'./navigator'
});
    },
    "navigateBack"(){
      wx.navigateBack();
    },
    "redirectTo"(){
      wx.redirectTo({
        "url":'./navigator'
});
    },
    "switchTab"(){
      wx.switchTab({
        "url":'/page/component/index'
});
    },
    "reLaunch"(){
      wx.reLaunch({
        "url":'/page/component/index'
});
    }
});

</script>
<style 
 lang="css">
</style>